package com.hmy.finance.service.core;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmy.finance.dal.po.ProfitLossRecordPo;

import java.time.LocalDate;
import java.util.List;

/**
 * @author songkf
 * @description 针对表【profit_loss_record(损益业务记录表)】的数据库操作Service
 * @createDate 2024-02-21 18:55:01
 */
public interface IProfitLossRecordService extends IService<ProfitLossRecordPo> {

    /**
     * Select profit loss record list by contract id and offset through date
     *
     * @param contractId the ID of the sale contract
     * @param startDate  the offset start date
     * @param endDate    the offset end date
     * @return the list of profit loss record
     * @author songkf
     */
    List<ProfitLossRecordPo> selectReceivableAdjustListByContractIdAndOffsetThroughDate(Long contractId, LocalDate startDate, LocalDate endDate);
}
